#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
double pows(int n, int k)
{
	double val = 0;
	if (k > 0)
	{
		val = n * pows(n, --k);
	}
	else if (k == 0)
	{
		val = 1;
	}
	else
	{
		val = 1.0 / pows(n, -k);
	}
	return val;
}
int main()
{
	int n = 0;
	int k = 0;
	scanf("%d %d", &n, &k);
	double ret = pows(n, k);
	printf("%lf", ret);
	return 0;
}